--
-- DESCRIPTION
--
-- @COMPANY **
-- @AUTHOR **
-- @DATE ${date} ${time}
--

---@type BP_Shark_C
local M = UnLua.Class("Action.Blueprints.Characters.BP_ActionChar")

-- function M:Initialize(Initializer)
-- end

-- function M:UserConstructionScript()
-- end

-- function M:ReceiveBeginPlay()
-- end

-- function M:ReceiveEndPlay()
-- end

-- function M:ReceiveTick(DeltaSeconds)
-- end

-- function M:ReceiveAnyDamage(Damage, DamageType, InstigatedBy, DamageCauser)
-- end

-- function M:ReceiveActorBeginOverlap(OtherActor)
-- end

-- function M:ReceiveActorEndOverlap(OtherActor)
-- end

--- 初始化绑定相关
function M:InitializingBinding()
    self.Super.InitializingBinding(self)
    self.Defeated:Add(self, self.FunDefeated)
end

--- 被击败函数
function M:FunDefeated()
    self:DetachFromControllerPendingDestroy()-- 脱离控制器
    KismetSystemLibrary.K2_SetTimerDelegate({ self, self.K2_DestroyActor }, 2, false)
end

return M
